package com.xfcy.blog.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * 系统管理-用户基础信息表(User)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:06
 */
@TableName("b_user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User implements Serializable {
    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //账号
    private String username;
    //登录密码
    private String password;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //状态 0:禁用 1:正常
    private Integer status;
    //登录方式 (邮箱登录 1 )
    private Integer loginType;
    //用户详情id
    private Integer userAuthId;
    //角色id
    private Integer roleId;
    //ip地址
    private String ipAddress;
    //ip来源
    private String ipSource;
    //登录系统
    private String os;
    //最后登录时间
    private LocalDateTime lastLoginTime;
    //浏览器
    private String browser;

}

